home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGNG_C
/
CUG187.LZH
/
SETDTA.C
< prev
next >
Wrap
C/C++ Source or Header
|
1986-02-21
|
1KB
|
27 lines
/*@*****************************************************/
/*@ */
/*@ setdta - set a new DOS DTA buffer. */
/*@ */
/*@ Usage: setdta(buffer); */
/*@ where buffer is a buffer becomes the DTA. */
/*@ */
/*@ returns zero. */
/*@ */
/*@ NOTE: buffer must be at least 44 bytes long. */
/*@ NOTE: buffer must not cross a segment. */
/*@ */
/*@*****************************************************/
extern unsigned _rax, _rbx, _rcx, _rdx, _rsi, _rdi, _res, _rds;
extern char _carryf, _zerof;
setdta(newdta)
char *newdta;
{
_rax = 0x1a00; /* set DTA DOS function */
_rdx = newdta; /* offset to DTA */
_rds = _showds(); /* current DS segment */
_doint(0x21); /* call DOS */
return 0;
}